from redis import StrictRedis


class Config:


    SECRET_KEY='LOjI6Vg0L7weP0lL1tADiztuESiYh7rPNhcVzy5a9y+ro7zsJBtq0g=='
    DEBUG=None
    
    SESSION_TYPE='redis'
    SESSION_REDIS=StrictRedis()
    SESSION_USE_SIGNER=False
    PERMANANENT_SESSION_LIFETIME=86400
    
    SQLALCHEMY_DATABASE_URI='mysql://root:mysql@localhost:3306/wangwen'
    SQLALCHEMY_TRACK_MODIFICATIONS=False

class Development(Config):
    DEBUG = True
class Product(Config):
    DEBUG = False

config_dict={
    'dev':Development,
    'pro':Product
}